package com.hyt.it.ogt.kq.service.gov.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.StringUtils;

/**
 * 考生拓展信息
 * 
 * @author huangwu
 * @since 2022-11-21
 */
@Accessors(chain = true)
@ApiModel(value = "CandidateExtVO对象", description = "考生基础拓展信息对象")
public class CandidateExtVO {

	@ApiModelProperty(value = "报名地址")
	private String address;

	@ApiModelProperty(value = "报名省份")
	private String province;

	@ApiModelProperty(value = "报考市")
	private String city;

	@ApiModelProperty(value = "报考地区")
	private String district;

	@ApiModelProperty(value = "报考考点")
	private String placeId;

	@ApiModelProperty(value = "报考考点描述")
	private String placeDesc;

	@ApiModelProperty(value = "报考考场")
	private String roomId;

	@ApiModelProperty(value = "报考考场描述")
	private String roomDesc;

	@ApiModelProperty(value = "报考座位号")
	private String seatNum;
	
	@ApiModelProperty(value = "报考科目id")
	private String subjectId;
	
	@ApiModelProperty(value = "报考科目描述")
	private String subjectDesc;

	public String getAddress() {
		StringBuilder addressSb = new StringBuilder();
		if (StringUtils.isNotEmpty(province)) {
			addressSb.append(province);
			addressSb.append(",");
		}
		if (StringUtils.isNotEmpty(city)) {
			addressSb.append(city);
			addressSb.append(",");
		}
		if (StringUtils.isNotEmpty(district)) {
			addressSb.append(district);
			addressSb.append(",");
		}
		if (StringUtils.isNotEmpty(addressSb)) {
			return address = addressSb.deleteCharAt(addressSb.length() - 1).toString();
		} else {
			return addressSb.toString();
		}
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getDistrict() {
		return district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	public String getPlaceId() {
		return placeId;
	}

	public void setPlaceId(String placeId) {
		this.placeId = placeId;
	}

	public String getPlaceDesc() {
		return placeDesc;
	}

	public void setPlaceDesc(String placeDesc) {
		this.placeDesc = placeDesc;
	}

	public String getRoomId() {
		return roomId;
	}

	public void setRoomId(String roomId) {
		this.roomId = roomId;
	}

	public String getRoomDesc() {
		return roomDesc;
	}

	public void setRoomDesc(String roomDesc) {
		this.roomDesc = roomDesc;
	}

	public String getSeatNum() {
		return seatNum;
	}

	public void setSeatNum(String seatNum) {
		this.seatNum = seatNum;
	}

	public String getSubjectId() {
		return subjectId;
	}

	public void setSubjectId(String subjectId) {
		this.subjectId = subjectId;
	}

	public String getSubjectDesc() {
		return subjectDesc;
	}

	public void setSubjectDesc(String subjectDesc) {
		this.subjectDesc = subjectDesc;
	}
	
	
}
